package com.eig.course.dao;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eig.common.entity.course.EduSubject;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.LinkedList;
import java.util.List;

/**
 * @author ：StudentLsj（李世界）
 * @date ：Created in 2022/12/07 下午 03:10
 * @description：
 * @modified By：
 * @version:
 */
public interface CoreDao extends BaseMapper<EduSubject> {
    /**
     * 统计总行数
     *
     * @param
     * @return 总行数
     */
    long count(@Param("exception") EduSubject e);

    List<EduSubject> queryAllByLimit(@Param("exception") EduSubject eduSubject, @Param("pageable") Pageable pageable);

    LinkedList<EduSubject> queryAll(@Param("exception") EduSubject eduSubject);
    LinkedList<EduSubject> queryAlls();

    int insertsubject(EduSubject eduSubject);

    void changeStatusId(EduSubject eduSubject);

    void changeStatusIdById(EduSubject eduSubject);
}
